package com.laboratory.domain.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Positive;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
class ItemDto {

    /**
     * 商品名称
     */
    @NotBlank(message = "商品名不能为空")
    private String name;

    /**
     * 商品数量
     */
    @Positive(message = "数量必须大于0")
    private int quantity;

}